package MtG.publicClass.messages;

import MtG.publicClass.Card;
import MtG.publicClass.Message;
import MtG.publicClass.Player;

/**
 * CardPlaced.java is a message class for letting users know, what card was placed.
 * @author Marek Sirp
 * @author Jaan Sepp
 */
public class CardPlaced extends Message{
	
	/**
	 * Determines if a de-serialized file is compatible with this class.
	 */
	private static final long serialVersionUID = 6977038458225787836L;

	/**
	 * Constructor.
	 * @param card card that was played.
	 * @param player player, who played the card.
	 */
	public CardPlaced(Card card, Player player){
		setMessage(player.getName() + " placed 1 " + card.getCardName());
	}

}
